interface CancelOrderAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface CancelOrderAPIData {
  id: string
  cannel_reason: string
}

export function cancelOrderAPI(data: CancelOrderAPIData, token: string) {
  return httpInstance.post<CancelOrderAPIResData, CancelOrderAPIData>(
    '/api/order/cannelorder',
    data,
    { headers: { token } },
  )
}
